# Create your views here.
#from django.shortcuts import get_object_or_404
from django.views.generic import ListView
from studio.models import *

class CategoryMenView(ListView):
    template_name = "studio/good_list.html"
    paginate_by = 15
    def get_queryset(self):
        return MenGoodClass.objects.get(pk=self.args[0]).tags.all()

class CategoryWomenView(ListView):
    template_name = "studio/good_list.html"
    paginate_by = 15
    def get_queryset(self):
        return WomenGoodClass.objects.get(pk=self.args[0]).tags.all()

class CategoryDecorView(ListView):
    template_name = "studio/good_list.html"
    paginate_by = 15
    def get_queryset(self):
        return DecorGoodClass.objects.get(pk=self.args[0]).tags.all()